Skip to content

Conversation

@bjorn3
Copy link
Member

@bjorn3 bjorn3 commented Dec 8, 2025

The main highlights this time are a Cranelift update and adding actual support for -Cdebuginfo=line-tables-only rather than treating it the same as -Cdebuginfo=full.

r? @ghost

@rustbot label +A-codegen +A-cranelift +T-compiler

pitaj and others added 30 commits October 25, 2025 14:30
…=BoxyUwU

Add `overflow_checks` intrinsic

This adds an intrinsic which allows code in a pre-built library to inherit the overflow checks option from a crate depending on it. This enables code in the standard library to explicitly change behavior based on whether `overflow_checks` are enabled, regardless of the setting used when standard library was compiled.

This is very similar to the `ub_checks` intrinsic, and refactors the two to use a common mechanism.

The primary use case for this is to allow the new `RangeFrom` iterator to yield the maximum element before overflowing, as requested [here](rust-lang#125687 (comment)). This PR includes a working `IterRangeFrom` implementation based on this new intrinsic that exhibits the desired behavior.

[Prior discussion on Zulip](https://rust-lang.zulipchat.com/#narrow/stream/219381-t-libs/topic/Ability.20to.20select.20code.20based.20on.20.60overflow_checks.60.3F)
Improve type safety by using an enum rather than strings.
Improve type safety by using an enum rather than strings.
Improve type safety by using an enum rather than strings.
…e. (rust-lang#1604)

* Only allocate the minimal alignment requested for a type when possible.

* Code review: make an assertion a debug assert. Adjust an out-of-date comment.
This is far more accurate than filtering based on filename and as such
allows building the sysroot a bit quicker. In addition the code is a bit
simpler.
@rustbot
Copy link
Collaborator

rustbot commented Dec 8, 2025

The list of allowed third-party dependencies may have been modified! You must ensure that any new dependencies have compatible licenses before merging.

cc @davidtwco, @wesleywiser

@rustbot rustbot added A-tidy Area: The tidy tool S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. A-codegen Area: Code generation A-cranelift Things relevant to the [future] cranelift backend labels Dec 8, 2025
@rustbot
Copy link
Collaborator

rustbot commented Dec 8, 2025

⚠️ Warning ⚠️

  • There are issue links (such as #123) in the commit messages of the following commits.
    Please move them to the PR description, to avoid spamming the issues with references to the commit, and so this bot can automatically canonicalize them to avoid issues with subtree.

  • The following commits have merge commits (commits with multiple parents) in your changes. We have a no merge policy so these commits will need to be removed for this pull request to be merged.

    You can start a rebase with the following commands:

    $ # rebase
    $ git pull --rebase https://github.com/rust-lang/rust.git main
    $ git push --force-with-lease
    

@rustbot rustbot added has-merge-commits PR has merge commits, merge with caution. S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Dec 8, 2025
@bjorn3
Copy link
Member Author

bjorn3 commented Dec 8, 2025

@bors r+ p=1 subtree sync

@bors
Copy link
Collaborator

bors commented Dec 8, 2025

📌 Commit cb49fe5 has been approved by bjorn3

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Dec 8, 2025
@rust-log-analyzer

This comment has been minimized.

…o filtering

Reading the manifest doesn't work when running in the context of the
rust build system.
@bjorn3
Copy link
Member Author

bjorn3 commented Dec 8, 2025

Had to revert 0670b60 because it broke in the context of bootstrap.

@bors r+ p=1 subtree sync

@bors
Copy link
Collaborator

bors commented Dec 8, 2025

📌 Commit 5a1936f has been approved by bjorn3

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Dec 8, 2025

⌛ Testing commit 5a1936f with merge 0b96731...

@bors
Copy link
Collaborator

bors commented Dec 9, 2025

☀️ Test successful - checks-actions
Approved by: bjorn3
Pushing 0b96731 to main...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Dec 9, 2025
@bors bors merged commit 0b96731 into rust-lang:main Dec 9, 2025
12 checks passed
@rustbot rustbot added this to the 1.94.0 milestone Dec 9, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Dec 9, 2025

What is this? This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.

Comparing 37aa213 (parent) -> 0b96731 (this PR)

Test differences

Show 2 test diffs

2 doctest diffs were found. These are ignored, as they are noisy.

Test dashboard

Run

cargo run --manifest-path src/ci/citool/Cargo.toml -- \
    test-dashboard 0b96731cd10757f695e99ba675ac26840ff85a79 --output-dir test-dashboard

And then open test-dashboard/index.html in your browser to see an overview of all executed tests.

Job duration changes

  1. x86_64-mingw-1: 10372.2s -> 9425.1s (-9.1%)
  2. i686-gnu-nopt-2: 7534.9s -> 8122.4s (+7.8%)
  3. dist-i586-gnu-i586-i686-musl: 5760.5s -> 5334.1s (-7.4%)
  4. dist-aarch64-apple: 7720.4s -> 8284.9s (+7.3%)
  5. dist-aarch64-llvm-mingw: 6311.1s -> 5881.3s (-6.8%)
  6. x86_64-gnu: 7189.2s -> 7669.2s (+6.7%)
  7. pr-check-2: 2336.8s -> 2184.2s (-6.5%)
  8. x86_64-gnu-miri: 4377.6s -> 4095.5s (-6.4%)
  9. dist-armv7-linux: 5091.1s -> 5415.1s (+6.4%)
  10. dist-various-2: 2182.5s -> 2303.5s (+5.5%)
How to interpret the job duration changes?

Job durations can vary a lot, based on the actual runner instance
that executed the job, system noise, invalidated caches, etc. The table above is provided
mostly for t-infra members, for simpler debugging of potential CI slow-downs.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (0b96731): comparison URL.

Overall result: no relevant changes - no action needed

@rustbot label: -perf-regression

Instruction count

This benchmark run did not return any relevant results for this metric.

Max RSS (memory usage)

Results (primary 2.3%, secondary 1.9%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
2.3% [2.3%, 2.3%] 1
Regressions ❌
(secondary)
6.8% [6.8%, 6.8%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-3.0% [-3.0%, -3.0%] 1
All ❌✅ (primary) 2.3% [2.3%, 2.3%] 1

Cycles

Results (primary 3.9%, secondary 0.8%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
3.9% [3.9%, 3.9%] 1
Regressions ❌
(secondary)
2.5% [2.1%, 2.9%] 2
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-2.5% [-2.5%, -2.5%] 1
All ❌✅ (primary) 3.9% [3.9%, 3.9%] 1

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 470.452s -> 471.709s (0.27%)
Artifact size: 389.00 MiB -> 389.01 MiB (0.00%)

@bjorn3 bjorn3 deleted the sync_cg_clif-2025-12-08 branch December 9, 2025 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-codegen Area: Code generation A-cranelift Things relevant to the [future] cranelift backend A-tidy Area: The tidy tool has-merge-commits PR has merge commits, merge with caution. merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.